<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<div class="layout">
		<parent v-ref:mycom></parent>
			<div v-el:mydiv>普通div</div>
	</div>
	<template id="parent">
		<div>
			<div>父组件</div>
		</div>
	</template>
	<script src="../vue1026.js"></script>
	<script>
		Vue.component("parent",{
			template:"#parent",
		});
		var vm = new Vue({
			el:".layout",
			data:{},
			methods:{},
		});
		console.log(vm.$els.mydiv);
		console.log(vm.$refs.mycom);
	</script>
</body>
</html>
